package com.vhall.component.entity.room.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author shimingming
 * @since 2023/6/7 13:50
 */
@Data
public class ReportRoomReqVO implements Serializable {

    @NotNull(message = "report_id 不能为空！")
    @JsonProperty(value = "report_id")
    @ParamName("report_id")
    private Integer reportId;

    @NotBlank(message = "room_id 不能为空")
    @ParamName("room_id")
    @JsonProperty("room_id")
    private String roomId;

    @Length(max = 255, message = "desc 参数过长")
    @JsonProperty(value = "desc")
    @ParamName("desc")
    private String desc;
}
